var imgWin;
var openImageViewer = function(imgSrc){
	if(imgWin){
		imgWin.show();
		Ext.getDom("imgViewer").src = imgSrc
		return;
	}
	imgWin = new Ext.Window({
            title: message.get('message.edit.photo'),
            layout: 'fit',
            width: 800,
            height: 605,
            closeAction: 'hide',
            plain: true,
            modal: true,
            autoScroll : true,
            items: [{
                html: '<div style="height:570;overflow:auto;"><img id="imgViewer" src="../../_temp/noimage.gif" onclick="window.open(this.src);" style="cursor: hand;"></div>'
            }]
        });
    imgWin.show();
    Ext.getDom("imgViewer").src = imgSrc;
}